package com.naire.modul.dictionary.service;

import net.common.manager.DictManager;
import net.common.service.GeneralService;
import com.naire.modul.dictionary.dao.DictionaryDao;
import com.naire.modul.dictionary.dao.impl.DictionaryDaoImpl;
import com.naire.modul.dictionary.vo.DictionaryVo;

/**
 * 
 * 
 * @author Administrator
 * 
 */
public class DictionaryDeleteService extends GeneralService {

	private DictionaryVo bean;

	@Override
	public void execute() throws Exception {
		DictionaryDao dao = new DictionaryDaoImpl();
		bean.setFlag(1);
		dao.updateFlag(bean);
		DictManager.remove(bean.getSort_num(), bean);
	}

	public void setBean(DictionaryVo bean) {
		this.bean = bean;
	}

}
